import { SubjectComponent } from "../../../../core/subject";
import EggyReadyItem from "../../../eggy/assets/eggy_ready_item";

const { ccclass, property } = cc._decorator;

@ccclass
export default class EditEggyLobbyPanel extends SubjectComponent {
    @property(EggyReadyItem)
    item: EggyReadyItem = null;

    onClickOk() {
        this.emit("char", this.item.char);
        this.node.destroy();
    }
};